package com.example.demo.service;

import com.example.demo.entity.Customer;

/**
 * @auther yaoyouwei
 * @create 2020-03-25 22:02
 */
public interface CustomerService {
    void addWithoutTransactional(Customer customer);
    void addWithoutTransactionalExc(Customer customer);
    void addRequired(Customer customer);
    void addRequiredNew(Customer customer);
    void addNested(Customer customer);
    void addSupports(Customer customer);
    void addNotSupported(Customer customer);
    void addMandatory(Customer customer);
    void addNever(Customer customer);

    void addRequiredExc(Customer customer);
    void addRequiredNewExc(Customer customer);
    void addNestedExc(Customer customer);
    void addSupportsExc(Customer customer);
    void addNotSupportedExc(Customer customer);
    void addMandatoryExc(Customer customer);
    void addNeverExc(Customer customer);

    void throwExc();
}
